<div class="page-haeder">
<h1>{$WEB_APP.title}</h1>
</div>
{include file="errors.tpl"}

{if count($WEB_APP.titles) neq 0}
		<table class="table table-striped table-bordered table-condensed">
			<tr>
				
				<th colspan = 2>{$title}</th>
				
			</tr>
		{assign var="tmp" value="2"}
		{foreach from = $WEB_APP.titles item = item name=foreach_row}
			
			{if $item.name eq "header"}
			<tr>				
			</table>
			<br>
			<table class="table table-striped table-bordered">
			<tr>
				
				<th colspan = 2>{$item.value|escape}</th>
				
			</tr>
			{else}
			<tr>
				
				<td>{$item.name|escape|email}:</td>
				<td>{$item.value}</td>
				
			</tr>
			{/if}
		{/foreach}			
		</table>		
	{/if}
	{if $WEB_APP.rows_count > 0}
		<br>
		<h1>{$text.txt_results}</h1>
		{include file="table_header.tpl" columns=$WEB_APP.columns}
		{include file="table_rows.tpl" index='id' items=$WEB_APP.rows columns=$WEB_APP.columns}
		{include file="table_footer.tpl" columns_count=$WEB_APP.columns_count}
	{/if}
	
	{if $WEB_APP.themes_count > 0}
		<br>
		{include file="table_header.tpl" columns=$WEB_APP.themes_columns}
		{include file="table_rows.tpl" index='id' items=$WEB_APP.themes columns=$WEB_APP.themes_columns}
		{include file="table_footer.tpl" columns_count=$WEB_APP.themes_columns_count}
	{/if}
